package main

import (
	"gim/comm"
	"gim/connect"
	log "github.com/golang/glog"
	_ "github.com/icattlecoder/godaemon"
)

func main() {	
	log.Info("connect server start")
	
	csrv := connect.StartConnect(comm.STORAGE_HOST, comm.DB_REDIS_HOST, comm.DB_REDIS_PWD, comm.MQ_REDIS_HOST, comm.MQ_REDIS_PWD, comm.CONNECT_HOST)
	
	signalCH := comm.InitSignal()
	comm.HandleSignal(signalCH)
	
	connect.StopConnect(csrv)
}